package lyx.tank.element
{
	import flash.display.BitmapData;
	import flash.display.Sprite;
	
	import lyx.game.element.GameElement;
	
	public class Wall extends GameElement
	{
		static public var WALL_VIEW_DATA:BitmapData;
		
		public function Wall()
		{
			life = 4;
			initViewData();
		}
		
		private function initViewData():void
		{
			if(WALL_VIEW_DATA==null)
			{
				var sprite:Sprite = new Sprite();
				sprite.graphics.beginFill(0x903422);
				sprite.graphics.drawRect(0,0,40,40);
				sprite.graphics.endFill();
				
				WALL_VIEW_DATA = new BitmapData(40,40,true,0);
				WALL_VIEW_DATA.draw(sprite);
			}
			
			view_data = WALL_VIEW_DATA;
		}
	}
}